package com.sailor.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sailor.mapper.UserMapper;
import com.sailor.pojo.User;
import com.sailor.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByname(String name) {
        return userMapper.getUserByname(name);
    }

    @Override
    public Integer addUser(User user) {
        return userMapper.addUser(user);
    }
}
